From: Jasper St. Pierre Date: Sat, 16 Feb 2013 04:15:13 +0000 (-0500) Subject: search: Don't run a full search for equal terms X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~4830 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=87495575bcbf10c92e01a2867d4157be57add193;p=gnome-shell.git search: Don't run a full search for equal terms Due to the timeout on the search entry, it's possible for a very quick edit to the entry to launch a subsearch on the same search string. https://bugzilla.gnome.org/show_bug.cgi?id=693937 --- diff --git a/js/ui/search.js b/js/ui/search.js index c4eb10c24..3dd59d720 100644 --- a/js/ui/search.js +++ b/js/ui/search.js @@ -66,6 +66,8 @@ const SearchSystem = new Lang.Class({ let searchString = terms.join(' '); let previousSearchString = this._previousTerms.join(' '); + if (searchString == previousSearchString) + return; let isSubSearch = false; if (this._previousTerms.length > 0)